package com.it.facade;

import cn.dev33.satoken.util.SaResult;
import com.it.annotation.CurrentUser;
import com.it.bean.User;
import com.it.service.ApplicationService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/app")
@RequiredArgsConstructor
public class AppsController {
    private final ApplicationService applicationService;

    //查询App
    @PostMapping("/apps")
    public SaResult getApps(@CurrentUser User user) {
        return SaResult.data(user);
    }
}